package com.harunasan.carrental.api.serve.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;

import com.harunasan.carrental.api.common.domain.entity.BaseInitUserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 梁毅
 * @since 2022-03-07 23:06:16
 */
@Getter
@Setter
@TableName("pms_store")
@ApiModel(value = "Store对象", description = "")
public class Store implements Serializable, BaseInitUserEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("网点id")
    private Long storeId;

    @ApiModelProperty("所在城市id")
    private String cityId;

    @ApiModelProperty("门店负责人id")
    private Long managerId;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("门店名字")
    private String storeName;

    @ApiModelProperty("联系电话")
    private String telephone;

    @ApiModelProperty("联系邮箱")
    private String email;

    @ApiModelProperty("门店地址")
    private String address;

    @ApiModelProperty("营业开始时间")
    private LocalTime openHour;

    @ApiModelProperty("营业结束时间")
    private LocalTime closeHour;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人标识[外键]")
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("修改人标识[外键]")
    private Long updatedId;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime updatedTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("删除人标识[外键]")
    private Long deletedId;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("删除时间")
    private LocalDateTime deletedTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("是否删除")
    private Boolean isDeleted = false;

    @ApiModelProperty("是否启用")
    private Boolean isEnabled;


}
